﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace API_CUSTOMCONTROL.Controls
{
    /// <summary>
    /// Interaction logic for MyProvinceInsertControl.xaml
    /// </summary>
    public partial class MyProvinceInsertControl : UserControl
    {

        public MyProvinceInsertControl()
        {
            InitializeComponent();
        }

        private void btnSubmit_Click(object sender, RoutedEventArgs e)
        {
            //backgroundWorker.RunWorkerAsync();
            HandleSubmit(txtProvinceName.IsValid, txtProvinceName.TextContent);
        }

        private void HandleSubmit(bool isValid, string provinceName)
        {
            if (isValid)
            {

            }
        }
    }
}
